package br.ufrj.dcc.comp2.musica.vista;

import java.awt.BorderLayout;
import javax.swing.BorderFactory;
import javax.swing.JPanel;

import br.ufrj.dcc.comp2.musica.controle.ControleCardLayout;
import br.ufrj.dcc.comp2.musica.listeners.ListenerMenuProfessor;

public class PainelGerenciarTurmas extends JPanel {

	private static final long serialVersionUID = 1L;
	
	
	PainelSuperiorGerenciarNotas painelSuperior;
	PainelInferiorGerenciarNotas painelInferior;
	ScrollPaneTabelaAlunoNota scrollPaneTabelaAlunoNota;
	JPanel painelTabela;
	
	private ControleCardLayout controleCardLayout;

	public ControleCardLayout getControleCardLayout() {
		return controleCardLayout;
	}
	
	public PainelGerenciarTurmas (ControleCardLayout controleCardLayout) {
		
		this.controleCardLayout = controleCardLayout;
		painelSuperior = new PainelSuperiorGerenciarNotas();
		painelInferior = new PainelInferiorGerenciarNotas();
		scrollPaneTabelaAlunoNota = new ScrollPaneTabelaAlunoNota();
		painelTabela = new JPanel();
		
		painelTabela.add(scrollPaneTabelaAlunoNota);
		
		this.setLayout(new BorderLayout());
	
	
		this.setBorder(BorderFactory.createTitledBorder("Gerenciar Notas"));
		
		this.add(painelSuperior, BorderLayout.NORTH);
		this.add(painelTabela, BorderLayout.CENTER);
		this.add(painelInferior, BorderLayout.SOUTH);
		
		
	}

	public JPanel getPainelTabela() {
		return painelTabela;
	}

	public void setPainelTabela(JPanel painelTabela) {
		this.painelTabela = painelTabela;
	}

	public PainelSuperiorGerenciarNotas getPainelSuperior() {
		return painelSuperior;
	}

	public PainelInferiorGerenciarNotas getPainelInferior() {
		return painelInferior;
	}

	public ScrollPaneTabelaAlunoNota getScrollPaneTabelaAlunoNota() {
		return scrollPaneTabelaAlunoNota;
	}


}
